package org.iabako.client.config.menu;

import org.iabako.client.config.page.PageEnum;
import org.iabako.client.tools.Messages;

/**
 * Created by jose on 19/09/14.
 */
public enum AccountMenuItemEnum {

    MyEnterprise("account_menu_enterprise", "enterpriseicon", PageEnum.EnterpriseConfiguration),
    Users("account_menu_users", "usersicon", PageEnum.UserConfiguration),
    Notifications("account_menu_notifications", "notificiationsicon", PageEnum.NotificationConfiguration),
    PaymentRequest("account_menu_payment_request", "receivableicon", PageEnum.PaymentRequestConfiguration),
    Configuration("account_menu_configuration", "configicon", PageEnum.ClientCustomFieldsConfiguration);

    String labelKey;
    String iconClass;
    PageEnum page;

    private AccountMenuItemEnum(String labelKey, String iconClass, PageEnum page) {
        this.labelKey = labelKey;
        this.iconClass = iconClass;
        this.page = page;
    }

    public String getLabel() {
        return Messages.getLabel(labelKey);
    }

    public String getIconClass() {
        return iconClass;
    }

    public PageEnum getPage() {
        return page;
    }
}
